From 30f1c38acdcd54558d75df6a9f6cec14310dae3d Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 27 May 2003 15:22:21 +0000 Subject: [PATCH] Don't free description twice when prefer_shortnames. From Ron. --- gpsbabel/csv_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/csv_util.c b/gpsbabel/csv_util.c index 9d2f7f530..2c2cba10f 100644 --- a/gpsbabel/csv_util.c +++ b/gpsbabel/csv_util.c @@ -782,7 +782,7 @@ xcsv_waypt_pr(const waypoint *wpt) if (shortname) xfree(shortname); - if (description) + if (description && description != shortname) xfree(description); index++; -- 2.30.2